<include file="../header" />
<body class="J_scroll_fixed">

<div class="wrap J_check_wrap">
    <table class="table table-hover table-bordered">
        <thead>
        <tr>
            <th>编号</th>
            <th>店铺名称</th>
            <th>状态</th>
            <th>创建时间</th>
            <th>开始时间</th>
            <th>截止时间</th>
            <th>购买类型</th>
            <th>折扣</th>
            <th>操作</th>
        </tr>
        </thead>
        <tbody>
        <foreach name="list" item="vo">
            <tr>
                <td>{$vo.record_id}</td>
                <td>{$vo.shop_name}</td>
                <td>
                    <if condition = "$vo['status'] eq $status['WAITING']">待开通
                    <elseif condition = "$vo['status'] eq $status['START']"/>正在使用
                    <elseif condition = "$vo['status'] eq $status['END']"/>已结束
                    </if>
                </td>
                <td>{$vo.create_time}</td>
                <td>{$vo.start_time}</td>
                <td>{$vo.end_time}</td>
                <td>
                    <if condition = "$vo['classify'] eq $classify['YEAR']">年卡
                    <elseif condition = "$vo['classify'] eq $classify['SEASON']"/>季卡
                    <elseif condition = "$vo['classify'] eq $classify['MONTH']"/>月卡
                    </if>
                </td>
                <th>{$vo.discount}折</th>
                <td>
                    <if condition = "$vo['status'] eq $status['WAITING']">
                        <a href='{:U("vip/openRecord",array("id"=>$vo["record_id"]))}'>开通</a>
                    </if>
                </td>
            </tr>
        </foreach>
        </tbody>
    </table>
    <div class="pagination">{$page}</div>
</div>
<script src="__ROOT__/statics/js/common.js"></script>
</body>
</html>